<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Login</title>
    </h:head>    
    <h:body>
        <p:panel header="Login">
            <h:form>
                <h:panelGrid columns="2" >
                    <p:outputLabel value="Email:"/>
                    <p:inputText value="#{beanLogin.email}"/>
                    <p:outputLabel value="Senha:"/>
                    <p:password value="#{beanLogin.senha}"/>
                </h:panelGrid>
                    <p:commandButton value="Acessar"
                                     action="#{beanLogin.logar}"
                                     ajax="false"/>            
            </h:form>
        </p:panel>
        <p:growl autoUpdate="true" life="4000"/>
    </h:body>
</html>